Installing SQL 2012 on Windows 7 64 bit (EN) OS -> Failure
Hi,

When installing SQLEXPR_x86_ENU.exe the installation just dies out after showing a command prompt box. The SQLSetup.log found in %tmp% shows:

05/03/2012 14:49:29.586 ======================================================================
05/03/2012 14:49:29.586 Setup launched
05/03/2012 14:49:29.586 Attempting to determine media source
05/03/2012 14:49:29.586 Media source value not specified on command line argument.
05/03/2012 14:49:29.586 Setup is launched from media directly so default the value to the current folder.
05/03/2012 14:49:29.586 Media source: c:\8b13bdbe95039358f45308af\
05/03/2012 14:49:29.586 Attempt to determine media layout based on file 'c:\8b13bdbe95039358f45308af\mediainfo.xml'.
05/03/2012 14:49:29.743 Media layout is detected as: Core
05/03/2012 14:49:29.743 Not a slip stream media, so continuing to run setup.exe from media.
05/03/2012 14:49:29.758 SQM key not found
05/03/2012 14:49:29.758 /? or /HELP or /ACTION=HELP specified: false
05/03/2012 14:49:29.774 Help display: false
05/03/2012 14:49:29.774 .Net version 3.5 is installed
05/03/2012 14:49:29.774 .Net version 2.0 is installed
05/03/2012 14:49:29.774 Local setup.exe not found, so continuing to run setup.exe from media.
05/03/2012 14:49:29.774 Attempt to initialize SQL setup code group
05/03/2012 14:49:29.774 Attempting to determine security.config file path
05/03/2012 14:49:29.774 Checking to see if policy file exists C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\security.config
05/03/2012 14:49:29.774 .Net security policy file does not exist
05/03/2012 14:49:29.774 Attempting to create .Net security policy file
05/03/2012 14:49:31.915 Error: InitializeSqlSetupCodeGroupCore(64bit) failed
05/03/2012 14:49:31.915 Error: InitializeSqlSetupCodeGroup failed: 0x84C40013
05/03/2012 14:49:31.930 SQM key not found
05/03/2012 14:49:31.930 Setup closed with exit code: 0x84C40013
05/03/2012 14:49:31.930 ======================================================================

After many many hours of various troubleshootings, I came up with this and I'm stumped.

Framework 4 no longer uses caspol.exe per running the command line;


C:\Windows\Microsoft.NET\Framework64\v2.0.50727>caspol.exe -all -reset
Microsoft (R) .NET Framework CasPol 2.0.50727.5420
Copyright (c) Microsoft Corporation. All rights reserved.

ERROR: Runtime error: This method explicitly uses CAS policy, which has been obs
oleted by the .NET Framework. In order to enable CAS policy for compatibility re
asons, please use the NetFx40_LegacySecurityPolicy configuration switch. Please
see http://go.microsoft.com/fwlink/?LinkID=155570 for more information.

Now I extracted the executable and the configuration file used for the setup seems to indicate that it is using the legacy flags indicated in the CAS link.

I ran the exact same command line on the 32 bit folder

C:\Windows\Microsoft.NET\Framework\v2.0.50727>caspol.exe -all -reset

And it successfully created security.config and security.config.cch in C:\Windows\Microsoft.NET\Framework\v2.0.50727\config

In desperation, I copied those files into the 64 bit folder; C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config

And ran the installation, successfully installing SQL 2012.

Here's the rub, WHY can the security.config files not be created? It seems to indicate it tries to create them but fails, I am logged in as an administrator on the machine and I did run the setup using elevated rights (right click run as administrator)

I'm flumoxed, anyone else run into similar issues? Have any clues or ideas?

Thanks.

Connie
May 7th, 2012 12:21pm

Do you have antivirus installed ?
Free Windows Admin Tool Kit Click here and download it now
May 7th, 2012 12:44pm

Symantec Endpoint is installed but I did try with it uninstalled and got the same result;

05/01/2012 13:38:08.937 ======================================================================
05/01/2012 13:38:08.937 Setup launched
05/01/2012 13:38:08.937 Attempting to determine media source
05/01/2012 13:38:08.937 Media source value not specified on command line argument.
05/01/2012 13:38:08.937 Setup is launched from media directly so default the value to the current folder.
05/01/2012 13:38:08.937 Media source: c:\3bc720d648ae68f12614e841\
05/01/2012 13:38:08.937 Attempt to determine media layout based on file 'c:\3bc720d648ae68f12614e841\mediainfo.xml'.
05/01/2012 13:38:09.530 Media layout is detected as: Core
05/01/2012 13:38:09.530 Not a slip stream media, so continuing to run setup.exe from media.
05/01/2012 13:38:09.874 SQM key not found
05/01/2012 13:38:09.890 /? or /HELP or /ACTION=HELP specified: false
05/01/2012 13:38:09.890 Help display: false
05/01/2012 13:38:09.890 .Net version 3.5 is installed
05/01/2012 13:38:09.890 .Net version 2.0 is installed
05/01/2012 13:38:09.905 Local setup.exe not found, so continuing to run setup.exe from media.
05/01/2012 13:38:09.905 Attempt to initialize SQL setup code group
05/01/2012 13:38:09.905 Attempting to determine security.config file path
05/01/2012 13:38:09.905 Checking to see if policy file exists C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\security.config
05/01/2012 13:38:09.937 .Net security policy file does not exist
05/01/2012 13:38:09.937 Attempting to create .Net security policy file
05/01/2012 13:38:15.702 Error: InitializeSqlSetupCodeGroupCore(64bit) failed
05/01/2012 13:38:15.718 Error: InitializeSqlSetupCodeGroup failed: 0x84C40013
05/01/2012 13:38:15.734 SQM key not found
05/01/2012 13:38:15.734 Setup closed with exit code: 0x84C40013
05/01/2012 13:38:15.734 ======================================================================

May 7th, 2012 1:49pm

you're trying to install SQL Server 2012 Express Edition 32-bit on a 64-bit Windows which is not supported. (wowow not supported by SQL 2012 express edition)

please download 64-bit edition of SQL Server 2012 Express and try to install this version.

Free Windows Admin Tool Kit Click here and download it now
May 7th, 2012 2:56pm

@Daniel_Steiner,

Thank you for the comment. However according to this page; http://msdn.microsoft.com/en-us/library/ms143506.aspx

SQL Express 32 bit is supported on Win 7 ultimate 64 bits.

Nonetheless I had (and have again to get the log) tried with the 64 bit version with the same result:

05/07/2012 11:14:26.467 ======================================================================
05/07/2012 11:14:26.560 Setup launched
05/07/2012 11:14:26.560 Attempting to determine media source
05/07/2012 11:14:26.560 Media source value not specified on command line argument.
05/07/2012 11:14:26.560 Setup is launched from media directly so default the value to the current folder.
05/07/2012 11:14:26.592 Media source: c:\3e0f9a22a3db3a39a92f6ae415cae4\
05/07/2012 11:14:26.592 Attempt to determine media layout based on file 'c:\3e0f9a22a3db3a39a92f6ae415cae4\mediainfo.xml'.
05/07/2012 11:14:26.857 Media layout is detected as: Core
05/07/2012 11:14:26.857 Not a slip stream media, so continuing to run setup.exe from media.
05/07/2012 11:14:26.873 SQM key not found
05/07/2012 11:14:26.873 /? or /HELP or /ACTION=HELP specified: false
05/07/2012 11:14:26.888 Help display: false
05/07/2012 11:14:26.888 .Net version 3.5 is installed
05/07/2012 11:14:26.888 .Net version 2.0 is installed
05/07/2012 11:14:26.920 Local setup.exe not found, so continuing to run setup.exe from media.
05/07/2012 11:14:26.920 Attempt to initialize SQL setup code group
05/07/2012 11:14:26.935 Attempting to determine security.config file path
05/07/2012 11:14:26.935 Checking to see if policy file exists C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\security.config
05/07/2012 11:14:27.013 .Net security policy file does not exist
05/07/2012 11:14:27.029 Attempting to create .Net security policy file
05/07/2012 11:14:34.545 Error: InitializeSqlSetupCodeGroupCore(64bit) failed
05/07/2012 11:14:34.545 Error: InitializeSqlSetupCodeGroup failed: 0x84C40013
05/07/2012 11:14:34.545 SQM key not found
05/07/2012 11:14:34.545 Setup closed with exit code: 0x84C40013
05/07/2012 11:14:34.545 ======================================================================

May 7th, 2012 3:14pm

Thank you for the comment. However according to this page; http://msdn.microsoft.com/en-us/library/ms143506.aspx 

SQL Express 32 bit is supported on Win 7 ultimate 64 bits.

Nonetheless I had (and have again to get the log) tried with the 64 bit version with the same result:

if you read the foot note in the download page for SQL Server 2012 Express Edition you get this

Microsoft SQL Server 2012 Express includes both 32-bit and 64-bit versions. SQLEXPR32_x86 is a smaller package that can be used to install SQL Server Express onto only 32-bit operating system

Personally I interpret it the way that WOW64 is not really support as some additional components for SQL Server 2012 Express are available only as pure 32-bit or pure 64-bit, e.g. LocalDB does not work in

Free Windows Admin Tool Kit Click here and download it now
May 7th, 2012 5:01pm

if you've both .NET 3.5 and .NET 4.0 enabled, did you check that you've .NET 3.5 SP1 and not .NET 3.5 RTM?

In addition, some strange issues had been reported when WMI was not enabled, could you check that WMI is running?

May 7th, 2012 5:04pm

Hi Daniel

There are two packages for express

 SQLEXPR32_x86 supported only on 32 bit platforms

and

 SQLEXPR_x86 supported on both 32 and 64 bit

Free Windows Admin Tool Kit Click here and download it now
May 7th, 2012 5:33pm

+1 for checking .Net 3.5 Sp1, try to apply .NET 3.5 Sp1 again.
May 7th, 2012 5:34pm

Hi Daniel

There are two packages for express

 SQLEXPR32_x86 supported only on 32 bit platforms

and

 SQLEXPR_x86 supported on both 32 and 64 bit

but than should the foot note

Microsoft SQL Server 2012 Express includes both 32-bit and 64-bit versions. SQLEXPR32_x86 is a smaller package that can be used to install SQL Server Express onto only 32-bit operating system

be updated to to clarify WOW64 support as WOW64 is not a "only 32-bit operationg system".

Free Windows Admin Tool Kit Click here and download it now
May 7th, 2012 5:46pm

Hi ConnieLeeD,

From Hardware and Software Requirements for Installing SQL Server 2012, please make sure that you have applied SP1 on your Windows 7 Operating System.

Thanks,
Maggie

May 8th, 2012 6:25am

<Snip from log>

05/07/2012 11:14:26.888 .Net version 3.5 is installed
05/07/2012 11:14:26.888 .Net version 2.0 is installed


05/07/2012 11:14:27.013 .Net security policy file does not exist
05/07/2012 11:14:27.029 Attempting to create .Net security policy file
05/07/2012 11:14:34.545 Error: InitializeSqlSetupCodeGroupCore(64bit) failed
05/07/2012 11:14:34.545 Error: InitializeSqlSetupCodeGroup failed: 0x84C40013
05/07/2012 11:14:34.545 SQM key not found
05/07/2012 11:14:34.545 Setup closed with exit code: 0x84C40013

</Snip from log> 

Try downloading Microsoft .NET Framework 4 (Standalone Installer) from below and try
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17718 

You need to restart the box after above patch.

 

Free Windows Admin Tool Kit Click here and download it now
May 8th, 2012 6:53am

Microsoft SQL Server 2012 Express includes both 32-bit and 64-bit versions. SQLEXPR32_x86 is a smaller package that can be used to install SQL Server Express onto only 32-bit operating system

And I would agree, but I'm not using SQLEXPR32_x86, I'm using  SQLEXPR_x86, which is supposed to be 32/64 compliant.

WMI service is started (which is what I take your "check that WMI is running" to mean).

As to Net 3.5 SP1 the version installed, is the version that comes default with Windows 7,  I can't actually 'install' or 'uninstall' it, I have used the windows features to turn it on/off. It does indicate 3.5.1 which I presume to mean 3.5 SP1.

With the feature turned on the donetfx35.exe extracts then the install dies and gives me the standard 'this program may not have installed properly' error message.

I turned the windows feature off and proceeded to install, it extracted, downloaded then it installs and stops with a compatibility issue indicating that I have to install the OS language pack to enable this functionality MS .NET Framework 3.5 SP1 Language pack (I haven't even asked it to install that), and it then proceeds to uninstall what it had installed.

This is the contents of that log;

[05/07/12,14:56:18] Microsoft .NET Framework 3.5 (x64) 'package': [2] Error: Installation failed for component Microsoft .NET Framework 3.5 (x64) 'package'. MSI returned error code 1603
[05/07/12,15:03:13] Microsoft .NET Framework 3.0SP1 (x64) (CBS): [2] CBS Component is marked to be uninstalled but CBSPackageName is not authored - CCBSComponent::SetManager()
[05/07/12,15:03:13] Microsoft .NET Framework 3.0SP1 (x64) (CBS): [2] CBS Component can't be uninstalled as CBSPackageName is not authored - CCBSComponent::SetManager()
[05/07/12,15:03:18] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5 (x64) 'package' is not installed.
[05/07/12,15:03:18] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - DEU is not installed.
[05/07/12,15:03:18] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - FRA is not installed.
[05/07/12,15:03:18] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - ITA is not installed.
[05/07/12,15:03:18] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - NLD is not installed.

---------------

However it did toggle the feature in windows features to 'on', unfortunately I got no where;

05/08/2012 08:21:13.850 ======================================================================
05/08/2012 08:21:13.881 Setup launched
05/08/2012 08:21:13.897 Attempting to determine media source
05/08/2012 08:21:13.897 Media source value not specified on command line argument.
05/08/2012 08:21:13.897 Setup is launched from media directly so default the value to the current folder.
05/08/2012 08:21:13.913 Media source: c:\c6514ef2039976b4f55dc17821d0fc\
05/08/2012 08:21:13.913 Attempt to determine media layout based on file 'c:\c6514ef2039976b4f55dc17821d0fc\mediainfo.xml'.
05/08/2012 08:21:15.881 Media layout is detected as: Core
05/08/2012 08:21:15.881 Not a slip stream media, so continuing to run setup.exe from media.
05/08/2012 08:21:15.975 SQM key not found
05/08/2012 08:21:15.975 /? or /HELP or /ACTION=HELP specified: false
05/08/2012 08:21:15.975 Help display: false
05/08/2012 08:21:15.975 .Net version 3.5 is installed
05/08/2012 08:21:15.975 .Net version 2.0 is installed
05/08/2012 08:21:15.975 Local setup.exe not found, so continuing to run setup.exe from media.
05/08/2012 08:21:15.975 Attempt to initialize SQL setup code group
05/08/2012 08:21:15.975 Attempting to determine security.config file path
05/08/2012 08:21:15.975 Checking to see if policy file exists C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\security.config
05/08/2012 08:21:16.038 .Net security policy file does not exist
05/08/2012 08:21:16.038 Attempting to create .Net security policy file
05/08/2012 08:21:28.553 Error: InitializeSqlSetupCodeGroupCore(64bit) failed
05/08/2012 08:21:28.553 Error: InitializeSqlSetupCodeGroup failed: 0x84C40013
05/08/2012 08:21:28.569 SQM key not found
05/08/2012 08:21:28.569 Setup closed with exit code: 0x84C40013
05/08/2012 08:21:28.569 ======================================================================

May 8th, 2012 12:21pm

I do have SP 1, the requirements are the first thing I ran through, at this point if I check for updates the only thing coming up are language pack updates.
Free Windows Admin Tool Kit Click here and download it now
May 8th, 2012 12:22pm

Do you have antivirus running in the background ?

Can you try suspending the antivirus re apply Service Pack for .NET 3.5 and then install again ?

May 8th, 2012 12:26pm

I had previously tried the standalone  .NET Framework 4 installer, I tried it again this morning;

05/08/2012 09:09:06.382 ======================================================================
05/08/2012 09:09:06.398 Setup launched
05/08/2012 09:09:06.398 Attempting to determine media source
05/08/2012 09:09:06.398 Media source value not specified on command line argument.
05/08/2012 09:09:06.398 Setup is launched from media directly so default the value to the current folder.
05/08/2012 09:09:06.398 Media source: c:\304c35d522f475a56d\
05/08/2012 09:09:06.398 Attempt to determine media layout based on file 'c:\304c35d522f475a56d\mediainfo.xml'.
05/08/2012 09:09:06.882 Media layout is detected as: Core
05/08/2012 09:09:06.882 Not a slip stream media, so continuing to run setup.exe from media.
05/08/2012 09:09:06.914 SQM key not found
05/08/2012 09:09:06.914 /? or /HELP or /ACTION=HELP specified: false
05/08/2012 09:09:06.914 Help display: false
05/08/2012 09:09:06.914 .Net version 3.5 is installed
05/08/2012 09:09:06.914 .Net version 2.0 is installed
05/08/2012 09:09:06.914 Local setup.exe not found, so continuing to run setup.exe from media.
05/08/2012 09:09:06.914 Attempt to initialize SQL setup code group
05/08/2012 09:09:06.914 Attempting to determine security.config file path
05/08/2012 09:09:06.914 Checking to see if policy file exists C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\security.config
05/08/2012 09:09:07.164 .Net security policy file does not exist
05/08/2012 09:09:07.164 Attempting to create .Net security policy file
05/08/2012 09:09:15.867 Error: InitializeSqlSetupCodeGroupCore(64bit) failed
05/08/2012 09:09:15.867 Error: InitializeSqlSetupCodeGroup failed: 0x84C40013
05/08/2012 09:09:15.867 SQM key not found
05/08/2012 09:09:15.867 Setup closed with exit code: 0x84C40013
05/08/2012 09:09:15.882 ======================================================================

note: the antivirus is uninstalled completely at this point, I'm running everything using 'run as administrator' to elevate the rights to system administrator level

Free Windows Admin Tool Kit Click here and download it now
May 8th, 2012 1:23pm

I've got the SQL Key not found error on a 2008 server as well. I've spent hours on it and can't seem to get past it.
May 31st, 2012 2:56pm

@thealexdresko,

hey did you try running in command line (using run as administrator)

C:\Windows\Microsoft.NET\Framework\v2.0.50727>caspol.exe -all -reset

It should create: security.config and security.config.cch in C:\Windows\Microsoft.NET\Framework\v2.0.50727\config

Copy those files into the 64 bit folder; C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config

Then try installing SQL.

Connie

Free Windows Admin Tool Kit Click here and download it now
June 6th, 2012 1:17pm

Actually, I got around that particular problem, I think, by exporting "HKLM\SOFTWARE\Microsoft\Microsoft Sql Server" from a machine where SQL 2012 was working properly and importing it back on to the broken machine.

I got several other errors along the way though..  Through some combination of manually copying the x64 and licenses from the source media to c:\program files\Microsoft Sql Server\Setup Bootstrap, uninstalling and reinstalling several times, I finally got it to work. 

June 6th, 2012 1:55pm

In case anybody is as dumb as me. Make sure you are installing the full installer and not just the service pack....

Free Windows Admin Tool Kit Click here and download it now
August 12th, 2015 2:27am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics